package com.hzeport.bgs22emduty.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.hzeport.bgs22emduty.common.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("EMDU_DUTY_SCHEDULE_EXCHANGE")
@ApiModel(value = "人员调班表")
public class DutyScheduleExchange extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "人员排班ID，关联人员排班情况表DUTY_SCHEDULE_INFO主键ID")
    @TableField(value = "DUTY_ID")
    @JsonProperty(value = "dId")
    private String dId;

    @ApiModelProperty(value = "换班日期")
    @TableField(value = "EX_DAY")
    @JsonProperty(value = "exDay")
    private LocalDate exDay;

    @ApiModelProperty(value = "换班人工号")
    @TableField(value = "EX_USER_NO")
    @JsonProperty(value = "exUserno")
    private String exUserno;

    @ApiModelProperty(value = "换班人姓名")
    @TableField(value = "EX_USER_NAME")
    @JsonProperty(value = "exUsername")
    private String exUsername;

    @ApiModelProperty(value = "被换班人工号")
    @TableField(value = "EX_RECV_USER_NO")
    @JsonProperty(value = "exRecvUserno")
    private String exRecvUserno;

    @ApiModelProperty(value = "被换班人姓名")
    @TableField(value = "EX_RECV_USER_NAME")
    @JsonProperty(value = "exRecvUsername")
    private String exRecvUsername;

    @ApiModelProperty(value = "换班状态")
    @TableField(value = "EX_STATUS")
    @JsonProperty(value = "exStatus")
    private String exStatus;

    @ApiModelProperty(value = "换班确认时间")
    @TableField(value = "EX_CONFIRM_TIME")
    @JsonProperty(value = "exConfirmTime")
    private LocalDateTime exConfrimTime;



}
